package net.yla.smartbus.core.util.mini;

/**
 * @Date: 2020-09-16 16:47
 * @Author: Being Nobody
 * @Version: 1.0
 */

public class DictUtil {
    // 获取民族
   public  static String region(int region) {
        String result;
        switch (region){
            case 1 :result="汉族";break;
            case 2 :result="蒙古族";break;
            case 3 :result="回族";break;
            case 4 :result="藏族";break;
            case 5 :result="维吾尔族";break;
            case 6 :result="苗族";break;
            case 7 :result="彝族";break;
            case 8 :result="壮族";break;
            case 9 :result="布依族";break;
            case 10:result="朝鲜族";break;
            case 11:result="满族";break;
            case 12:result="侗族";break;
            case 13:result="瑶族";break;
            case 14:result="白族";break;
            case 15:result="土家族";break;
            case 16:result="哈尼族";break;
            case 17:result="哈萨克族";break;
            case 18:result="傣族";break;
            case 19:result="黎族";break;
            case 20:result="僳僳族";break;
            case 21:result="佤族";break;
            case 22:result="畲族";break;
            case 23:result="高山族";break;
            case 24:result="拉祜族";break;
            case 25:result="水族";break;
            case 26:result="东乡族";break;
            case 27:result="纳西族";break;
            case 28:result="景颇族";break;
            case 29:result="柯尔克孜族";break;
            case 30:result="土族";break;
            case 31:result="达斡尔族";break;
            case 32:result="仫佬族";break;
            case 33:result="羌族";break;
            case 34:result="布朗族";break;
            case 35:result="撒拉族";break;
            case 36:result="毛南族";break;
            case 37:result="仡佬族";break;
            case 38:result="锡伯族";break;
            case 39:result="阿昌族";break;
            case 40:result="普米族";break;
            case 41:result="塔吉克族";break;
            case 42:result="怒族";break;
            case 43:result="乌孜别克族";break;
            case 44:result="俄罗斯族";break;
            case 45:result="鄂温克族";break;
            case 46:result="德昂族";break;
            case 47:result="保安族";break;
            case 48:result="裕固族";break;
            case 49:result="京族";break;
            case 50:result="塔塔尔族";break;
            case 51:result="独龙族";break;
            case 52:result="鄂伦春族";break;
            case 53:result="赫哲族";break;
            case 54:result="门巴族";break;
            case 55:result="珞巴族";break;
            case 56:result="基诺族";break;
            default:result="未设置";
        }

        return result;
    }
    // 教育
    public static String edu(int edu) {
        String result;
        switch (edu){
            case 1:result="小学";break;
            case 2:result="初中";break;
            case 3:result="高中";break;
            case 4:result="大专";break;
            case 5:result="本科";break;
            case 6:result="硕士";break;
            case 7:result="博士";break;
            default:result="未设置";
        }
        return result;
    }
    // 婚姻状态
    public static String marriage(int marriage) {
        String result;
        switch (marriage){
            case 1:result="未婚";break;
            case 2:result="已婚";break;
            case 3:result="离异";break;
            case 4:result="丧偶";break;
            default:result="未设置";
        }
        return result;
    }
    // 驾照
    public static String driver(int driver) {
        String result;
        switch (driver){
            case 1   :result="A1";break;
            case 2   :result="A2";break;
            case 4   :result="A3";break;
            case 8   :result="B1";break;
            case 16  :result="B2";break;
            case 32  :result="C1";break;
            case 64  :result="C2";break;
            case 128 :result="C3";break;
            case 256 :result="C4";break;
            case 512 :result="C5";break;
            case 1024:result="D ";break;
            case 2048:result="E ";break;
            default:result="未设置";
        }
        return result;
    }
    // 男女
    public static String sex(int sex) {
        String result;
        switch (sex){
            case 1:result="男";break;
            case 2:result="女";break;
            default:result="未设置";
        }
        return result;
    }

    // 雇员类型
    public static String emplyeeType(int emplyeeType) {
        String result;
        switch (emplyeeType){
            case 1:result="常规人员";break;
            case 2:result="驾驶员";break;
            case 3:result="加盟人员";break;
            default:result="未设置";
        }
        return result;
    }
}
